package com.card.client.entry;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class InputAccounts implements IsSerializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	private String explain;
	
	private int accounts;
	
	private Long financeTypeId;
	
	private Date appendTime;
	
	private Long userId;
	
	public static String[] title = {"编号", "收入说明", "收入金额", "收入类型", "收入日期", "操作者"};
	
	public InputAccounts(){
		this.explain = "";
		this.financeTypeId = 0L;
		this.appendTime = new Date();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getExplain() {
		return explain;
	}

	public void setExplain(String explain) {
		this.explain = explain;
	}

	public Long getFinanceTypeId() {
		return financeTypeId;
	}

	public void setFinanceTypeId(Long financeTypeId) {
		this.financeTypeId = financeTypeId;
	}

	public Date getAppendTime() {
		return appendTime;
	}

	public void setAppendTime(Date appendTime) {
		this.appendTime = appendTime;
	}

	public int getAccounts() {
		return accounts;
	}

	public void setAccounts(int accounts) {
		this.accounts = accounts;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

}
